//
//  WeekPlanLayout.h
//  PlanDemo
//
//  Created by 在成长开发 on 2025/9/8.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

static NSInteger kSingleColWidth = 52;
static NSInteger kSingleRowWidth = 52;
static CGFloat kLineSpace = 8;
static CGFloat kItemSpace = 8;

@protocol WeekPlanLayoutDelegate <UICollectionViewDelegateFlowLayout>

- (CGFloat)collectionView:(UICollectionView *)collectionView layout:(UICollectionViewLayout *)collectionViewLayout atRowForItemAtIndexPath:(NSIndexPath *)indexPath;

- (CGFloat)collectionView:(UICollectionView *)collectionView layout:(UICollectionViewLayout *)collectionViewLayout atColForItemAtIndexPath:(NSIndexPath *)indexPath;

@end

@interface WeekPlanLayout : UICollectionViewFlowLayout

@property (nonatomic, weak) id <WeekPlanLayoutDelegate>delegate;

@end

NS_ASSUME_NONNULL_END
